package com.qf.springboot2202.controller;

import com.qf.springboot2202.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloController {
    @Autowired
    @Qualifier("helloServiceImpl")
    private HelloService helloService;

    @GetMapping("/test01")
    public String hello(){

        return helloService.helloBoot();
    }
}
